package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.GraduateProjectDao;
import cn.edu.sdjzu.xg11.domain.GraduateProject;

@Service
public class GraduateProjectService {
	@Autowired
	GraduateProjectDao graduateProjectDao ;
	
	public Collection<GraduateProject> getGraduateProjects(){
		return graduateProjectDao.getGraduateProjects();
	}
	public void deleteGraduateProject(Integer id){
		graduateProjectDao.deleteGraduateProject(id);
	}
	public GraduateProject getGraduateProject(Integer id) {
		// TODO Auto-generated method stub
		return graduateProjectDao.getGraduateProject(id);
	}
	public void addGraduateProject(GraduateProject graduateProject ){
		graduateProjectDao.addGraduateProject(graduateProject);
	}
	public void updateGraduateProject(GraduateProject graduateProject) {
		graduateProjectDao.updateGraduateProject(graduateProject);		
	}
	
}
